package com.deruan.hotcore.resource.search;


import java.util.ArrayList;
import java.util.List;

import org.columba.core.search.SearchResult;

import com.deruan.hotcore.base.common.bean.ResourceBean;

public class ResourceSearchResult extends SearchResult
{	
	private List<ResourceBean> resourceList = new ArrayList<ResourceBean>();
	
	private String contactId;
	
	public ResourceSearchResult(String contactId)
	{
		super("", "", null);
		this.contactId = contactId;
	}
	
	public void addResouce(ResourceBean resourceBean)
	{
		resourceList.add(resourceBean);
	}

	public int getResultNum()
	{
		return resourceList.size();
	}

	public String getContactString() {
		return contactId;
	}
	
	public List<ResourceBean> getResourceList()
	{	
		return resourceList;
	}

}
